package com.css.fxfzaqbz.modules.domain.service.impl;

import com.css.fxfzaqbz.modules.assess.entity.CasualtiesEntity;
import com.css.fxfzaqbz.modules.assess.entity.DisasterAssEntity;
import com.css.fxfzaqbz.modules.assess.entity.RiskAssessmentEntity;
import com.css.fxfzaqbz.modules.assess.entity.SecondDisastersEntity;
import com.css.fxfzaqbz.modules.assess.repository.CasualtiesRepository;
import com.css.fxfzaqbz.modules.assess.repository.DisasterRepository;
import com.css.fxfzaqbz.modules.assess.repository.RiskAssessmentRepository;
import com.css.fxfzaqbz.modules.assess.repository.SecondDisastersRepository;
import com.css.fxfzaqbz.modules.assess2.entity.KeyplaceRiskassessment;
import com.css.fxfzaqbz.modules.assess2.entity.UrgencysettleData;
import com.css.fxfzaqbz.modules.assess2.repository.KeyplaceRiskassessmentRepository;
import com.css.fxfzaqbz.modules.assess2.repository.UrgencysettleDataRepository;
import com.css.fxfzaqbz.modules.domain.service.AssessmentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AssessmentServiceImpl implements AssessmentService {
    @Resource
    UrgencysettleDataRepository urgencysettleDataRepository;
    @Resource
    KeyplaceRiskassessmentRepository keyplaceRiskassessmentRepository;
    @Resource
    CasualtiesRepository casualtiesRepository;
    @Resource
    DisasterRepository disasterRepository;
    @Resource
    RiskAssessmentRepository riskAssessmentRepository;
    @Resource
    SecondDisastersRepository secondDisastersRepository;
    @Override
    public List<UrgencysettleData> getAzByIaId(String iaId) {
       return urgencysettleDataRepository.getAzByIaId(iaId);
    }

    @Override
    public List<KeyplaceRiskassessment> getZdByIaId(String id) {
        return keyplaceRiskassessmentRepository.getZdByIaId(id);
    }



    @Override
    public List<CasualtiesEntity> getCasualtiesByIaId(String id) {
        return casualtiesRepository.getCasualtiesByIaId(id);
    }

    @Override
    public List<DisasterAssEntity> getDisasterAssByIaId(String id) {
        return disasterRepository.getDisasterAssByIaId(id);
    }

    @Override
    public List<RiskAssessmentEntity> getRiskAssessmentByIaId(String id) {
        return riskAssessmentRepository.getRiskAssessmentByIaId(id);
    }

    @Override
    public List<SecondDisastersEntity> getSecondDisastersByIaId(String id) {
        return secondDisastersRepository.getSecondDisastersByIaId(id);
    }


}
